package cn.t.web.android;

import cn.t.annotation.Runtime;
import cn.t.dto.android.AndroidCargowayDTO;
import cn.t.facade.device.CargowaySkuFacade;
import cn.t.vo.andriod.AndroidCargowayVO;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 安卓货道服务入口
 *
 * @author s
 * @since 2024-07-08
 */
@Slf4j
@RestController
@RequestMapping("/runtime/cargoway")
// "安卓货道服务")
@AllArgsConstructor
@Runtime
public class AndroidCargowayController {

    private final CargowaySkuFacade facade;

    /**
     * 电子标签-货道查询接口
     */
    @PostMapping(value = "/getElectronicTag")
    public List<AndroidCargowayVO> getElectronicTag(@RequestBody AndroidCargowayDTO req) {
        return facade.getElectronicTag(req);
    }

}

